<template>
	<view class="container">
		<carHeader :title="'团购优惠'"></carHeader>
		<view class="">
			<view class="content" v-for="(item, index) in tuangou" :key="index" @click="tiao(item)">
				<image class="i1" :src="item.imgpath" mode="widthFix"></image>
				<view>{{item.name}}</view>
				<image class="i2" src="../../static/车联网服务-07优惠团购_slices/收起箭头小.png"></image>
				<text>详情</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				tuangou: [{
						name: "汽车惠民活动走进......",
						imgpath: "https://img1.baidu.com/it/u=3348700610,1309937290&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1724432400&t=cb81a9d10b38133963759cd3e247c046"
					},
					{
						name: "汽车惠民活动走进......",
						imgpath: "https://img1.baidu.com/it/u=3348700610,1309937290&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1724432400&t=cb81a9d10b38133963759cd3e247c046"

					}
				]
			};
		},
		methods: {
			tiao(obj) {
				console.log(obj); //选择的对象
				uni.navigateTo({
					url: "/pages/tuangouxiangqing/tuangouxiangqing"
				})
			},
		
		}
	}
</script>

<style lang="scss">
	.content {
		background-color: white;
		position: relative;
		top: -220rpx;
		margin: 20rpx;
		border-radius: 20rpx;
		padding: 30rpx;

		.i1 {
			height: 200rpx;
			width: 650rpx;
			border-radius: 10rpx;
		}

		.i2 {
			width: 20rpx;
			height: 20rpx;
			position: relative;
			left: 600rpx;
			top: -44rpx;

		}

		text {
			position: relative;
			left: 500rpx;
			top: -44rpx;
		}

	}
</style>